<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>上官婉儿</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="/css/animate.css" rel="stylesheet">
    <link href="/css/style.css" rel="stylesheet">
    <link href="/css/plugins/iCheck/custom.css" rel="stylesheet">
</head>

<body>
<div id="wrapper">
    <#include "/layout/left.ftl">
    <div id="page-wrapper" class="gray-bg">
        <#include "/layout/header.ftl">
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins" style="margin-bottom: 20px">
                        <div class="ibox-content" style="padding-top: 20px;">
                            <form id="searchForm" method="post">
                            <input type="hidden" id="pageNum" name="pageNum" value="${pageNum!}">
                            <div class="row">
                                <div class="col-lg-3">
                                    <input type="text" name="name" placeholder="名称" value="${name!}" class="name form-control" />
                                </div>
                                <div class="col-lg-9">
                                    <button type="button" class="btn btn-primary" onclick="goPage(1)"><i class="fa fa-search"></i>&nbsp;查询</button>
                                    <button type="button" class="btn btn-warning" onclick="startEmpty()"><i class="fa fa-times"></i>&nbsp;清空</button>
                                </div>
                            </div>
                            </form>
                        </div>
                    </div>
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <button type="button" class="btn btn-primary" onclick="add()"><i class="fa fa-plus"></i>&nbsp;添加</button>
                            <button type="button" class="btn btn-success" onclick="update()"><i class="fa fa-pencil"></i>&nbsp;编辑</button>
                            <button type="button" class="btn btn-danger" onclick="startDelete()"><i class="fa fa-times"></i>&nbsp;删除</button>
                            <button type="button" class="btn btn-info" id="refresh" onclick="startRefresh()"><i class="fa fa-refresh"></i>&nbsp;刷新</button>
                        </div>
                        <#if pageData.dataList?size gt 0>
                        <div class="ibox-content" style="height: 380px;">
                            <div class="full-height-scroll">
                                <table class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th><input type="checkbox" class="checkbox"></th>
                                        <th>模块</th>
                                        <th>负责人</th>
                                        <th>完成时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <#list pageData.dataList as projectFunpoint>
                                    <tr class="select-tr">
                                        <td><input type="checkbox" class="i-checks" value="${projectFunpoint.id}"></td>
                                        <td>${projectFunpoint.name!"暂无"}</td>
                                        <td>${projectFunpoint.leader!"暂无"}</td>
                                        <td>${projectFunpoint.finishTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                                    </tr>
                                    </#list>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="ibox-footer">
                            <#include "/layout/paging.ftl">
                        </div>
                        <#else>
                        <div class="ibox-content">
                            <p class="text-center">没有找到匹配的记录</p>
                        </div>
                        </#if>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <#include "/layout/footer.ftl">
        </div>

    </div>
</div>

<!-- Mainly scripts -->
<script src="/js/jquery-3.1.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- Custom and plugin javascript -->
<script src="/js/inspinia.js"></script>
<script src="/js/plugins/pace/pace.min.js"></script>
<!-- iCheck -->
<script src="/js/plugins/iCheck/icheck.min.js"></script>
<script src="/component/layer/layer.js"></script>
<script src="/custom/js/common/bzxgc-utils.js"></script>
<script src="/custom/js/common/global.js"></script>
<script src="/custom/js/common/list.js"></script>
<script>
    var url = '/projectFunpoint';
    var listUrl = url + '/list';
    var addUrl = url + '/add';
    var updateUrl = url + '/update/';
    var ajaxSaveUrl = url + '/ajax/save';
    var ajaxDeleteUrl = url + '/ajax/delete';
    var listName = "部门";
    function goPage(pageNum) {
        $('#pageNum').val(pageNum);
        startSearch();
    }

</script>
</body>
</html>